import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';

declare var layui: any;

@Component({
  selector: 'app-manage-room',
  templateUrl: './manage-room.component.html',
  styleUrls: ['./manage-room.component.css']
})
export class ManageRoomComponent implements OnInit {

  constructor(
    private router: Router
  ) {}

  ngOnInit() {

    layui.use(['element','form'], function() {
        var element = layui.element;
        var form = layui.form;
        element.render();
        form.render();
    });
  }

  toRoomTypeList(): void {
    this.router.navigate(['/room-type-list']);
  }

  toRoomList(): void {
    this.router.navigate(['/room-list']);
  }

  toFoodList(): void {
    this.router.navigate(['/food-list']);
  }

}
